<script lang="ts" setup>
import "@/utils/rem"
import { ref } from "vue"
import { useRouter } from "vue-router"
const router = useRouter()
const type = ref<any>(router.currentRoute.value.query.t) //招聘类型

document.title = "凡思特欢迎你"
defineOptions({
  name: "OrderSearch"
})
</script>
<template>
  <div style="max-width: 750px; margin: 0 auto; background-color: #fff" class="bg">
    <div style="text-align: center; font-size: 0">
      <el-image
        src="http://fansitexitong.cn/images/hrindex.jpg"
        alt=""
        fit="cover"
        style="width: 7.5rem; height: 100%"
      />
    </div>
    <div class="form orderSearch">
      <van-button type="success" class="btn" style="margin-right: 0.2rem" round :to="`/hr/search`">
        查 询 简 历
      </van-button>
      <van-button type="success" class="btn" style="margin-left: 0.2rem" round :to="`/hr/addS`" v-if="!type">
        投 递 简 历
      </van-button>
      <van-button type="success" class="btn" style="margin-left: 0.2rem" round :to="`/hr/add`" v-else>
        投 递 简 历
      </van-button>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.orderSearch {
  position: fixed;
  width: 7.5rem;
  bottom: 10px;
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.btn {
  background: linear-gradient(90deg, #2aad88 0%, #09c165 100%);
  box-shadow: 0px 2px 6px 2px rgba(4, 0, 105, 0.25);
  border: 0;
  width: 2.7rem;
  height: 0.8rem;
  font-size: 18px;
  border-radius: 0.16rem;
}
</style>
